home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyy((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyy((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y - Allocates a hierarchy ID and opens all
- the UID files in the hierarchy
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Mrm/MrmPublic.h>
-
- Cardinal MrmOpenHierarchy(nnnnuuuummmm____ffffiiiilllleeeessss,,,, ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt,,,, aaaannnncccciiiillllllllaaaarrrryyyy____ssssttttrrrruuuuccccttttuuuurrrreeeessss____lllliiiisssstttt,,,, hhhhiiiieeeerrrraaaarrrrcccchhhhyyyy____iiiidddd)
- _M_r_m_C_o_u_n_t nnnnuuuummmm____ffffiiiilllleeeessss;
- _S_t_r_i_n_g ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt[];
- _M_r_m_O_s_O_p_e_n_P_a_r_a_m_P_t_r *aaaannnncccciiiillllllllaaaarrrryyyy____ssssttttrrrruuuuccccttttuuuurrrreeeessss____lllliiiisssstttt;
- _M_r_m_H_i_e_r_a_r_c_h_y *hhhhiiiieeeerrrraaaarrrrcccchhhhyyyy____iiiidddd;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This routine is obsolete and exists for compatibility with
- previous releases. It is replaced by
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y. _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y is identical
- to _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y except that _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y
- does not take a ddddiiiissssppppllllaaaayyyy argument.
-
- nnnnuuuummmm____ffffiiiilllleeeessss
- Specifies the number of files in the name list.
-
- ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt
- Specifies an array of character strings that identify
- the UID files.
-
- aaaannnncccciiiillllllllaaaarrrryyyy____ssssttttrrrruuuuccccttttuuuurrrreeeessss____lllliiiisssstttt
- A list of operating-system-dependent ancillary
- structures corresponding to such things as filenames,
- clobber flag, and so forth. This argument should be
- NULL for most operations. If you need to reference
- this structure, see the definition of _M_r_m_O_s_O_p_e_n_P_a_r_a_m_P_t_r
- in _M_r_m_P_u_b_l_i_c._h for more information.
-
- hhhhiiiieeeerrrraaaarrrrcccchhhhyyyy____iiiidddd
- Returns the search hierarchy ID. The search hierarchy
- ID identifies the list of UID files that MRM searches
- (in order) when performing subsequent fetch calls.
-
- Each UID file string in ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt can specify either a
- full pathname or a filename. If a UID file string has a
- leading slash (/), it specifies a full pathname, and MRM
- opens the file as specified. Otherwise, the UID file string
- specifies a filename. In this case MRM looks for the file
- along a search path specified by the _U_I_D_P_A_T_H environment
- variable or by a default search path, which varies depending
- on whether or not the _X_A_P_P_L_R_E_S_D_I_R environment variable is
- set.
-
- The _U_I_D_P_A_T_H environment variable specifies a search path and
- naming conventions associated with UID files. It can
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyy((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyy((((3333XXXX))))
-
-
-
- contain the substitution field %U, where the UID file string
- from the ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt argument to
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y is substituted for %U. It can
- also contain the substitution fields accepted by
- _X_t_R_e_s_o_l_v_e_P_a_t_h_n_a_m_e. The substitution field %T is always
- mapped to _u_i_d. The entire path is first searched with %S
- mapped to ._u_i_d and then, if no file is found, is searched
- again with %S mapped to NULL.
-
- If no display is set prior to calling this function, the
- result of this function's call to _X_t_R_e_s_o_l_v_e_P_a_t_h_n_a_m_e is
- undefined.
-
- For example, the following _U_I_D_P_A_T_H value and
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y call cause MRM to open two separate UID
- files: UIDPATH=/uidlib/%L/%U.uid:/uidlib/%U/%L
- static char *uid_files[] = {"/usr/users/me/test.uid",
- "test2"};
- MrmHierarchy *Hierarchy_id;
- MrmOpenHierarchy((MrmCount)2,uid_files, NULL,
- Hierarchy_id)
-
- MRM opens the first file, /_u_s_r/_u_s_e_r_s/_m_e/_t_e_s_t._u_i_d, as
- specified in the ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt argument to
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y, because the UID file string in the
- ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt argument specifies a full pathname. MRM
- looks for the second file, _t_e_s_t_2, first as
- /_u_i_d_l_i_b/%_L/_t_e_s_t_2._u_i_d and second as /_u_i_d_l_i_b/_t_e_s_t_2/%_L, where
- the display's language string is substituted for %L.
-
- After _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y opens the UID hierarchy, you should
- not delete or modify the UID files until you close the UID
- hierarchy by calling _M_r_m_C_l_o_s_e_H_i_e_r_a_r_c_h_y.
-
- If _U_I_D_P_A_T_H is not set but the environment variable
- _X_A_P_P_L_R_E_S_D_I_R is set, MRM searches the following pathnames:
- 22:59:55S
- $XAPPLRESDIR/%L/uid/%N/22:59:55S
- $XAPPLRESDIR/%l/uid/%N/22:59:55S
- $XAPPLRESDIR/uid/%N/22:59:55S
- $XAPPLRESDIR/%L/uid/22:59:55S
- $XAPPLRESDIR/%l/uid/22:59:55S
- $XAPPLRESDIR/uid/22:59:55S
- $HOME/uid/22:59:55S
- $HOME/22:59:55S
- /usr/lib/X11/%L/uid/%N/22:59:55S
- /usr/lib/X11/%l/uid/%N/22:59:55S
- /usr/lib/X11/uid/%N/22:59:55S
- /usr/lib/X11/%L/uid/22:59:55S
- /usr/lib/X11/%l/uid/22:59:55S
- /usr/lib/X11/uid/22:59:55S
- /usr/include/X11/uid/22:59:55S
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyy((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyy((((3333XXXX))))
-
-
-
- If neither _U_I_D_P_A_T_H nor _X_A_P_P_L_R_E_S_D_I_R is set, MRM searches the
- following pathnames:
- 22:59:55S
- $HOME/%L/uid/%N/22:59:55S
- $HOME/%l/uid/%N/22:59:55S
- $HOME/uid/%N/22:59:55S
- $HOME/%L/uid/22:59:55S
- $HOME/%l/uid/22:59:55S
- $HOME/uid/22:59:55S
- $HOME/22:59:55S
- /usr/lib/X11/%L/uid/%N/22:59:55S
- /usr/lib/X11/%l/uid/%N/22:59:55S
- /usr/lib/X11/uid/%N/22:59:55S
- /usr/lib/X11/%L/uid/22:59:55S
- /usr/lib/X11/%l/uid/22:59:55S
- /usr/lib/X11/uid/22:59:55S
- /usr/include/X11/uid/22:59:55S
-
- These paths are defaults that vendors may change. For
- example, a vendor may use different directories for
- /_u_s_r/_l_i_b/_X_1_1 and /_u_s_r/_i_n_c_l_u_d_e/_X_1_1.
-
- The following substitutions are used in these paths:
-
- %_U The UID file string, from the ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt argument.
-
- %_N The class name of the application.
-
- %_L The display's language string.
-
- %_l The language component of the display's language
- string.
-
- %_S The suffix to the file name. The entire path is
- searched first with a suffix of ._u_i_l, and if no file is
- found, it is searched again with a NULL suffix.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- This function returns one of these status return constants:
-
- _M_r_m_S_U_C_C_E_S_S
- The function executed successfully.
-
- _M_r_m_N_O_T__F_O_U_N_D
- File not found.
-
- _M_r_m_F_A_I_L_U_R_E
- The function failed.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y(_3_X) and _M_r_m_C_l_o_s_e_H_i_e_r_a_r_c_h_y(_3_X).
-
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-